﻿Imports System.Globalization

Public Class DOFormatter

    Public Shared Function DateFromString(ByVal token As String) As DateTime
        Return DateTime.ParseExact(token, "u", CultureInfo.InvariantCulture.DateTimeFormat)
    End Function

    Public Shared Shadows Function DateToString(ByVal src As DateTime) As String
        Return src.ToString("yyyy-MM-dd HH:mm:ssZ")
    End Function

End Class
